/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tests.clientData;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import clientData.MemberData;
import static org.junit.Assert.*;

/**
 *
 * @author iziko
 */
public class MemberDataTest {

    public MemberDataTest() {
    }

    MemberData  instance;

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
            instance = new MemberData(1,"iziko","iz@mail","izik","orgad");
    }

    @After
    public void tearDown() {
    }

    /**
     * Test of getEmail method, of class MemberData.
     */
    @Test
    public void testGetEmail() {
        System.out.println("getEmail");
        String expResult = "iz@mail";
        String result = instance.getEmail();
    }

    /**
     * Test of getFirstName method, of class MemberData.
     */
    @Test
     public void testGetFirstName() {
        System.out.println("getFirstName");
        String expResult = "izik";
        String result = instance.getFirstName();
        assertEquals(expResult, result);
    }

    /**
     * Test of getId method, of class MemberData.
     */
    @Test
     public void testGetId() {
        System.out.println("getId");
        int expResult = 1;
        int result = instance.getId();
        assertEquals(expResult, result);
    }

    /**
     * Test of getLastName method, of class MemberData.
     */
    @Test
       public void testGetLastName() {
        System.out.println("getLastName");
        String expResult = "orgad";
        String result = instance.getLastName();
        assertEquals(expResult, result);
    }

    /**
     * Test of getUserName method, of class MemberData.
     */
    @Test
     public void testGetUserName() {
        System.out.println("getUserName");
        String expResult = "iziko";
        String result = instance.getUserName();
        assertEquals(expResult, result);
    }

    /**
     * Test of toString method, of class MemberData.
     */
    @Test
    public void testToString() {
        System.out.println("toString");
        String expResult = "iziko";
        String result = instance.toString();
        assertEquals(expResult, result);
    }

}